package com.hxl.service.impl;


import com.hxl.dao.AccountDao;
import com.hxl.dao.BookDao;
import com.hxl.dao.EquipmentDao;
import com.hxl.dao.UserDao;
import com.hxl.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service("userService")
public class UserServiceImpl implements UserService {

    @Autowired(required = false)
    private UserDao userDao;

    @Autowired(required = false)
    private BookDao bookDao;

    @Autowired(required = false)
    private AccountDao accountDao;

    @Autowired(required = false)
    private EquipmentDao equipmentDao;


    @Override
    public void save() {
        System.out.println("user service running...");
        userDao.save();
        bookDao.save();
        accountDao.save();
        equipmentDao.save();
    }
}
